home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / ERASE.HLP < prev    next >
Text File  |  1985-09-10  |  3KB  |  91 lines

  1. -----------------------  ERASE - Internal DOS Command  -------------------------
  2.  
  3. ERASE removes files from disk on the specified drive in the specified directory.
  4.  
  5. FORMAT:   ERASE [d:][path][filename[.ext]]
  6.  
  7. REMARKS:
  8.  
  9.    d:       - the drive letter of the disk whose files are to be erased.  If
  10.               omitted, the default drive is assumed.
  11.    path     - the directory path of the directory whose files are to be erased.
  12.               If omitted, the current directory is assumed.
  13.    filename - the filename of the file(s) to be erased.
  14.    .ext     - the filename extension of the file(s) to be erased.
  15.  
  16.    DEL can be used as a short form of ERASE.
  17.  
  18.    If no filename is given, *.* (all files) is assumed.
  19.  
  20.    Global characters (? and *) are allowed in filenames and extensions.  Take
  21.    care in using these characters since many files can be erased with one ERASE
  22.    command.
  23.  
  24.    If you use *.* for the filename to erase all files in a directory or a disk,
  25.    DOS will issue the message:
  26.  
  27.           Are you sure(Y/N)
  28.  
  29.           Entering N (and then RETURN) will abort the ERASE command; entering Y
  30.           (and then RETURN) will execute the command.  This message/prompt warns
  31.           you that many files may be erased and gives you a chance to change
  32.           your mind.
  33.  
  34.    ERASE will not work for:
  35.  
  36.         Hidden DOS system files.
  37.         The "." and ".." files in a subdirectory.
  38.         Files marked as read-only (DOS Version 3).
  39.         Subdirectories.  Use the RMDIR command to remove a subdirectory.
  40.  
  41.  
  42. NOTE:  The ERASE command does not destroy data.  When a file is erased, the
  43.    directory entry for the file is altered to indicate that the file is no
  44.    longer in use.  The disk sectors that contain the file's contents are then
  45.    available for reuse.  If these sectors have not been reused, it is possible
  46.    to retrieve part or all of the erased file.  Utility programs that can
  47.    restore erased files may be purchased.  One such utility program is found in
  48.    a package called "The Norton Utilities."
  49.  
  50.  
  51. WARNING:  Global characters (? and *) are allowed in filenames and extensions.
  52.    Take care in using these characters since many files can be erased with one
  53.    ERASE command.  If no filename is specified, ERASE assumes all files (*.*)
  54.    are to be erased.
  55.  
  56.  
  57. EXAMPLES:
  58.  
  59. Erase the file MYFILE in the current directory on the default drive:
  60.  
  61.           ERASE MYFILE
  62.  
  63.  
  64. Erase the file MYFILE in current directory on drive B.  The default drive is A:
  65.  
  66.           ERASE B:MYFILE
  67.  
  68.  
  69. Erase all files in the BUDGET directory on the default drive.  BUDGET is a
  70. subdirectory of the root directory:
  71.  
  72.           ERASE \BUDGET
  73.  
  74.  
  75. Erase the file MYFILE in the BUDGET directory on the default drive.  BUDGET is a
  76. subdirectory of the root directory:
  77.  
  78.           ERASE \BUDGET\MYFILE
  79.  
  80.  
  81. Erase all files in the current directory on the default drive:
  82.  
  83.           ERASE *.*
  84.  
  85.  
  86. Erase all files in the current directory on the default drive whose filenames
  87. are eight characters long and end in "84."  All such files are to be erased
  88. regardless of their filename extensions:
  89.  
  90.           ERASE ??????84.*
  91.